package com.sunl.mall.common.api.util;

import java.io.PrintWriter;
import java.io.StringWriter;

public class ExceptionUtil {
    public static String getAsString(Throwable throwable) {
        StringWriter stringWriter = new StringWriter(50);
        throwable.printStackTrace(new PrintWriter(stringWriter));
        return stringWriter.toString();
    }
}
